{% extends "menu.html" %}
{% block content %}

        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">



            </div>
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>CDN配置</h2>

                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                    <br />
                    <form id="demo-form2" data-parsley-validate class="form-horizontal form-label-left" method="post" enctype="multipart/form-data">
                        {% csrf_token %}

                    <div class="form-group">

                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name"> 域名地址<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12" >
                          <input type="text" style="margin-top: 5px;width: 60%;height: 30px" name="domian" required value="{{ cdnconfig.cdn_domain }}">
                        </div>
                      </div>
                    <div class="form-group">

                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name"> CDN ID值<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12" >
                          <input type="text" style="width: 60%;height: 30px" name="cdn_id"  required value="{{ cdnconfig.cdn_id }}">

                        </div>
                      </div>
                    <div class="form-group">

                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">程序家目录<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12" >
                          <input type="text" style="width: 60%;height: 30px" name="home_dir"  required value="{{ cdnconfig.home_dir }}">

                        </div>
                      </div>
                    <div class="form-group">

                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">源服务器目录<span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12" >
                          <input type="text" style="width: 60%;height: 30px" name="dist_dir"  required value="{{ cdnconfig.dist_dir }}">

                        </div>
                      </div>

                    <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name" > 源服务器IP地址
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12" >
                          <input type="text" style="width: 60%;height: 30px" name="source_ip"  required value="{{ cdnconfig.cdn_source_ip }}">
                            <p>*源服务器地址需要与本机实现ssh互通<br>CDN ID值需要到CDN列表中查看<br>域名地址即为配置在cdn服务商供下载程序包的域名</p>
                        </div>
                      </div>






                        <div class="form-group">
                        <label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12"></label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <span>{{ result }}</span>
                        </div>
                      </div>
                      <div class="ln_solid"></div>
                      <div class="form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                          <button class="btn btn-primary" type="button">Cancel</button>
						  <button class="btn btn-primary" type="reset">Reset</button>
                          <button type="submit" class="btn btn-success">Submit</button>
                        </div>
                      </div>

                    </form>
                  </div>
                </div>

              </div>
            </div>


          </div>
        </div>
{% endblock %}